home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 1
/
Gekikoh Dennoh Club Vol. 1 (Japan).7z
/
Gekikoh Dennoh Club Vol. 1 (Japan) (Track 1).bin
/
kowin
/
archive
/
apl
/
gview120.lzh
/
gviewsrc.lzh
/
gramget.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-13
|
691b
|
36 lines
/*
Copyright 1995 Ogasawara Hiroyuki(COR.)
*/
#include <corlib.h>
#include <sys_doslib.h>
#include "gview.h"
void
GV_VramToBuf( gp )
GVIEW *gp;
{
int sp;
if(1); sp= SUPER(0); if(1);
{
unsigned short *vp= (void*)0xc00000;
int x, y;
if( gp->color == WindowAttrGraphic65536 ){
unsigned short *str= gp->buf;
for( y= 0 ; y< gp->v ; y++ ){
for( x= 0 ; x < gp->h ; x++ )
*str++= vp[y*512+x];
}
}else{
unsigned char *str= (void*)gp->buf;
int xlen= gp->color==WindowAttrGraphic16?1024:512;
for( y= 0 ; y< gp->v ; y++ ){
for( x= 0 ; x < gp->h ; x++ )
*str++= vp[y*xlen+x];
}
}
}
if(1); SUPER( sp ); if(1);
}